import request from '@/utils/request'
const groupName = 'blog-comment'

export function save(data) {
  return request({
    url: `/${groupName}/save`,
    method: 'post',
    data
  })
}

export function getByBlogId(data) {
  return request({
    url: `/${groupName}/getByBlogId`,
    method: 'post',
    data
  })
}

export function getByPage(data) {
  return request({
    url: `/${groupName}/getByPage`,
    method: 'post',
    data
  })
}

export function deleteById(data) {
  return request({
    url: `/${groupName}/deleteById/${data}`,
    method: 'delete'
  })
}

